package org.ljy.forum6.services;

import org.apache.ibatis.annotations.Param;
import org.ljy.forum6.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {


    /**
     * 新增回复
     */
    @Transactional
    void create(ArticleReply articleReply);


    /**
     * 返回指定文章下的所有回复
     * @param articleId 文章id
     * @return
     */
    List<ArticleReply> selectByArticleId(@Param("articleId") Long articleId);
}
